package cn.manyufun.myf.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Xiao on 2018-02-06.
 */

public class ComicsDetailBean extends BaseBean implements Parcelable {

    protected ComicsDetailBean(Parcel in) {
        ComicId = in.readLong();
        Title = in.readString();
        CoverImages = in.createStringArrayList();
        Score = in.readFloat();
        CommentNum = in.readInt();
        FollowNum = in.readInt();
        ArticleNum = in.readInt();
        ViewNum = in.readInt();
        Author = in.readString();
        BriefTitle = in.readString();
        BriefContent = in.readString();
        ExclusiveTag = in.readString();
        IsFollowed = in.readByte() != 0;
        ComicType = in.createStringArrayList();
        HotReplyList = in.createTypedArrayList(ReplyBean.CREATOR);
        NewReplyList = in.createTypedArrayList(ReplyBean.CREATOR);
        MyReply = in.readParcelable(ReplyBean.class.getClassLoader());
        MyScore = in.readFloat();
        UpdateInfo = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(ComicId);
        dest.writeString(Title);
        dest.writeStringList(CoverImages);
        dest.writeFloat(Score);
        dest.writeInt(CommentNum);
        dest.writeInt(FollowNum);
        dest.writeInt(ArticleNum);
        dest.writeInt(ViewNum);
        dest.writeString(Author);
        dest.writeString(BriefTitle);
        dest.writeString(BriefContent);
        dest.writeString(ExclusiveTag);
        dest.writeByte((byte) (IsFollowed ? 1 : 0));
        dest.writeStringList(ComicType);
        dest.writeTypedList(HotReplyList);
        dest.writeTypedList(NewReplyList);
        dest.writeParcelable(MyReply, flags);
        dest.writeFloat(MyScore);
        dest.writeString(UpdateInfo);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ComicsDetailBean> CREATOR = new Creator<ComicsDetailBean>() {
        @Override
        public ComicsDetailBean createFromParcel(Parcel in) {
            return new ComicsDetailBean(in);
        }

        @Override
        public ComicsDetailBean[] newArray(int size) {
            return new ComicsDetailBean[size];
        }
    };

    public long getComicId() {
        return ComicId;
    }

    public void setComicId(long comicId) {
        ComicId = comicId;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public List<String> getCoverImages() {
        return CoverImages;
    }

    public void setCoverImages(List<String> coverImages) {
        CoverImages = coverImages;
    }

    public float getScore() {
        return Score;
    }

    public void setScore(float score) {
        Score = score;
    }

    public int getCommentNum() {
        return CommentNum;
    }

    public void setCommentNum(int commentNum) {
        CommentNum = commentNum;
    }

    public int getFollowNum() {
        return FollowNum;
    }

    public void setFollowNum(int followNum) {
        FollowNum = followNum;
    }

    public int getArticleNum() {
        return ArticleNum;
    }

    public void setArticleNum(int articleNum) {
        ArticleNum = articleNum;
    }

    public int getViewNum() {
        return ViewNum;
    }

    public void setViewNum(int viewNum) {
        ViewNum = viewNum;
    }

    public String getAuthor() {
        return Author;
    }

    public void setAuthor(String author) {
        Author = author;
    }

    public String getBriefTitle() {
        return BriefTitle;
    }

    public void setBriefTitle(String briefTitle) {
        BriefTitle = briefTitle;
    }

    public String getBriefContent() {
        return BriefContent;
    }

    public void setBriefContent(String briefContent) {
        BriefContent = briefContent;
    }

    public List<ReplyBean> getHotReplyList() {
        return HotReplyList;
    }

    public void setHotReplyList(List<ReplyBean> hotReplyList) {
        HotReplyList = hotReplyList;
    }

    public List<ReplyBean> getNewReplyList() {
        return NewReplyList;
    }

    public void setNewReplyList(List<ReplyBean> newReplyList) {
        NewReplyList = newReplyList;
    }

    public String getExclusiveTag() {
        return ExclusiveTag;
    }

    public void setExclusiveTag(String exclusiveTag) {
        ExclusiveTag = exclusiveTag;
    }

    private long ComicId;
    private String Title;
    private List<String> CoverImages;
    private float Score;
    private int CommentNum;
    private int FollowNum;
    private int ArticleNum;
    private int ViewNum;
    private String Author;
    private String BriefTitle;
    private String BriefContent;
    private String ExclusiveTag;
    private boolean IsFollowed;
    private List<String> ComicType;
    private List<ReplyBean> HotReplyList;
    private List<ReplyBean> NewReplyList;
    private ReplyBean MyReply;
    private NewsSummary MyArticle;
    private float MyScore;
    private String UpdateInfo;

    public List<String> getComicType() {
        return ComicType;
    }

    public void setComicType(List<String> comicType) {
        ComicType = comicType;
    }

    public boolean isFollowed() {
        return IsFollowed;
    }

    public void setFollowed(boolean followed) {
        IsFollowed = followed;
    }

    public NewsSummary getMyArticle() {
        return MyArticle;
    }

    public void setMyArticle(NewsSummary myArticle) {
        MyArticle = myArticle;
    }

    public ReplyBean getMyReply() {
        return MyReply;
    }

    public void setMyReply(ReplyBean myReply) {
        MyReply = myReply;
    }

    public float getMyScore() {
        return MyScore;
    }

    public void setMyScore(float myScore) {
        MyScore = myScore;
    }

    public String getUpdateInfo() {
        return UpdateInfo;
    }

    public void setUpdateInfo(String updateInfo) {
        UpdateInfo = updateInfo;
    }
}
